package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.DeliveryParamDicMapper;
import com.molichuxing.services.infrastructure.dto.response.DeliveryParamDicDto;
import com.molichuxing.services.infrastructure.service.DeliveryParamDicService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: liuruifeng
 * @Description:
 * @Date: Created in 14:25 2019/11/05
 * @Modified By:
 **/
@Service("deliveryParamDicService")
public class DeliveryParamDicServiceImpl implements DeliveryParamDicService {

    @Resource
    private DeliveryParamDicMapper deliveryParamDicMapper;

    @Override
    public List<DeliveryParamDicDto> getDeliveryParamDicByParam(Map<String, Object> param) {
        return Convert.toDeliveryParamDicDtoList(deliveryParamDicMapper.getDeliveryParamDicByParam(param));
    }
}
